package ha.web.server.database;
import java.util.Random;

public class UserId {
	
	private String name;
	private String pass;
	private String nickName;
	private Boolean admin;
	private int userId;
	

	protected UserId (String name,String nickName, String pass, boolean admin) {
		this.name = name;
		this.pass = pass;
		this.nickName = nickName;
		this.admin = admin;
		Random r = new Random();
		this.userId =  r.nextInt(Integer.MAX_VALUE);
	}
	
	
	
	public String getName() {
		return name;
	}

	public String getNickName() {
		return nickName;
	}
	
	public Integer getUserID() {
		return userId;
	}
	
	public boolean isUserAdmin()
	{
		return this.admin;
	}
	protected String getPass() {
		return pass;
	}
	
}
